package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

public interface StudentDao {

    int login(Student student);
    List <Student> findAll(@Param("student") Student student,@Param("offset")int offset, @Param("pageSize") int pageSize);
    int count(Student condition);
    int addStudent(Student student);
    int deleteStudentById(Integer sId);
    Student findStudentById(Integer sId);

    int updateStudent(Student student);
}
